package net.wanho.systemSettings.service;

import net.wanho.commons.exception.DAOException;
import net.wanho.commons.exception.ServiceException;
import net.wanho.commons.service.BaseService;
import net.wanho.systemSettings.po.Position;

public interface PositionService extends BaseService<Position> {
    long count(String positionName) throws ServiceException;
    long countPositionIdRef(String positionId) throws ServiceException ;

    /**
     * 更新 关联菜单
     * @param position  职位对象
     * @return
     * @throws ServiceException
     */
    boolean modifyPositionIdRef(Position position) throws ServiceException ;

}
